package com.new_wear.project.system.info.domain;

import com.new_wear.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.new_wear.framework.aspectj.lang.annotation.Excel;
import com.new_wear.framework.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 广告 - 广告对象 cst_ad_info
 * 
 * @author ruoyi
 * @date 2019-12-19
 */
public class CstAdInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 客户端广告记录编号 */
    @Excel(name = "客户端广告记录编号")
    private Integer adId;

    /** 广告位position */
    @Excel(name = "广告位position")
    private Integer adPos;

    /** 区域ID */
    @Excel(name = "区域ID")
    private Integer areaId;

    /** 排序 */
    @Excel(name = "排序")
    private Integer seq;

    /** 广告名称 */
    @Excel(name = "广告名称")
    private String title;

    /** 摘要 */
    @Excel(name = "摘要")
    private String description;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String iconUrl;

    /** 图片相关 */
    @Excel(name = "图片相关")
    private String image;

    /** 路由跳转地址 */
    @Excel(name = "路由跳转地址")
    private String url;

    /** 是否是外链，1是。0不是 */
    @Excel(name = "是否是外链，1是。0不是")
    private Integer isExt;

    /** 是否显示头部（0不显示；1显示） */
    @Excel(name = "是否显示头部", readConverterExp = "0=不显示；1显示")
    private Integer showTitle;

    /** 有效期 开始时间 */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Excel(name = "有效期 开始时间")
    private Date startedAt;

    /** 有效期 结束时间 */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Excel(name = "有效期 结束时间")
    private Date expiredIn;

    /** 状态 1上架; 0下架 */
    @Excel(name = "状态 1上架; 0下架")
    private Integer status;

    /** 修改时间 */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Excel(name = "修改时间")
    private Date modifiedAt;

    /** 创建时间 */
    @Excel(name = "创建时间")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createdAt;

    private String stringStutas;

    public String getStringStutas() {
        return this.stringStutas;

    }

    public void setStringStutas(String stringStutas) {
        this.stringStutas = stringStutas;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setAdId(Integer adId) 
    {
        this.adId = adId;
    }

    public Integer getAdId() 
    {
        return adId;
    }
    public void setAdPos(Integer adPos) 
    {
        this.adPos = adPos;
    }

    public Integer getAdPos() 
    {
        return adPos;
    }
    public void setAreaId(Integer areaId) 
    {
        this.areaId = areaId;
    }

    public Integer getAreaId() 
    {
        return areaId;
    }
    public void setSeq(Integer seq) 
    {
        this.seq = seq;
    }

    public Integer getSeq() 
    {
        return seq;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setIconUrl(String iconUrl) 
    {
        this.iconUrl = iconUrl;
    }

    public String getIconUrl() 
    {
        return iconUrl;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setIsExt(Integer isExt) 
    {
        this.isExt = isExt;
    }

    public Integer getIsExt() 
    {
        return isExt;
    }
    public void setShowTitle(Integer showTitle) 
    {
        this.showTitle = showTitle;
    }

    public Integer getShowTitle() 
    {
        return showTitle;
    }
    public void setStartedAt(Date startedAt)
    {
        this.startedAt = startedAt;
    }

    public Date getStartedAt()
    {
        return startedAt;
    }
    public void setExpiredIn(Date expiredIn)
    {
        this.expiredIn = expiredIn;
    }

    public Date getExpiredIn()
    {
        return expiredIn;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setModifiedAt(Date modifiedAt)
    {
        this.modifiedAt = modifiedAt;
    }

    public Date getModifiedAt()
    {
        return modifiedAt;
    }
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("adId", getAdId())
            .append("adPos", getAdPos())
            .append("areaId", getAreaId())
            .append("seq", getSeq())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("iconUrl", getIconUrl())
            .append("image", getImage())
            .append("url", getUrl())
            .append("isExt", getIsExt())
            .append("showTitle", getShowTitle())
            .append("startedAt", getStartedAt())
            .append("expiredIn", getExpiredIn())
            .append("status", getStatus())
            .append("modifiedAt", getModifiedAt())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
